
const home =  (state,action) => {
  switch (action.type) {
    case "home":
      return{
        id:action.id,
        text:action.text+ "A+",
      }

      return Object.assign({},state,{completed:true});//合并对象
      break;
    case 'find':
      return state;
      break;
    default:

      return state;

  }
}


export default home;
